package petrochina.company.electric.http.api;

import android.os.Parcel;
import android.os.Parcelable;

import com.hjq.http.config.IRequestApi;

/**
 *    desc   : 提交任务
 */
public final class TaskSubmitApi implements IRequestApi {

    @Override
    public String getApi() {
        return "oper/submitOperticketSteps";
    }

    public final static class Bean implements Parcelable {
        private long id;

        protected Bean(Parcel in) {
            id = in.readLong();
        }

        public static final Creator<Bean> CREATOR = new Creator<Bean>() {
            @Override
            public Bean createFromParcel(Parcel in) {
                return new Bean(in);
            }

            @Override
            public Bean[] newArray(int size) {
                return new Bean[size];
            }
        };

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeLong(this.id);
        }
    }
}